Protect players from hostile mobs in claims - #8284
Open
pernio wants to merge 2 commits into
Open
Conversation
Member
|
Not sure about this one. Unless the player in a mobs-off plot cannot hurt mobs in mobs-on plots, players gain a really overpowered advantage. Mob farms could be made where afk players are invincible, probably making the game too easy for servers' economies. A player who is actually afk could just put themselves in a room without open windows and doors. |
Contributor
Author
|
Would it resolve the concern if it's locked behind a config setting? I use this in a standalone addon to Towny and I have never had the issue where players abuse this. |
Member
|
I'm good with it as long as it's locked behind a config setting that
defaults to off. The config setting comments should warn that this can
cause mob farms to be abused while afk due to invincibility.
…On Sat, Aug 22, 2026, 8:29 AM Jinzo ***@***.***> wrote:
*pernio* left a comment (TownyAdvanced/Towny#8284)
<#8284 (comment)>
Would it resolve the concern if it's locked behind a config perm? I use
this in a standalone addon to Towny and I have never had the issue where
players abuse this.
—
Reply to this email directly, view it on GitHub
<#8284?email_source=notifications&email_token=AAGWZDG4537SB4HB2CK7D735LGU4FA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZYGA4TAOJSGQYKM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5380909240>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGWZDEFPT45IBYBIP3MTND5LGU4FAVCNFSNUABEKJSXA33TNF2G64TZHMZDONJSGQ3DAMB3JFZXG5LFHM2TCOJVG43DIMRWGGQXMAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Contributor
Author
|
@LlmDl This should be locked now behind a config node which is default set to false. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Add protection for players against hostile mobs when they are standing in a plot where mobs aren't allowed. Currently, players take damage when they are e.g. afk inside claims. This fixes that issue and prevents damage dealt.
Notes:
Attestations
By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.
In making this pull request, I declare that I have not used an AI toolset to design or code this pull request, and that I am a human who coded this without any influence from an LLM.